<link rel="stylesheet" href="__STATIC__/module/common/layui/css/layui.css">

<style>
    .new-form-control{
        margin-left: 10px;
        width: 200px;
        padding: 5px 10px;
        height: 30px;
        font-size: 12px;
        line-height: 1.5;
        border-radius: 3px;
        box-shadow: none;
        color: #555;
        background-color: #fff;
        background-image: none;
        border: 1px solid #ccc;
    }
</style>

<div class="box">
    <div class="box-header">

        <div class="row">
            <!--<div class="col-sm-4">-->
            <!--<ob_link><a class="btn" href="{:url('walletAdd')}"><i class="fa fa-plus"></i> 新 增</a></ob_link>-->
            <!--</div>-->

            <div class="box-tools search-form">
                <div class="input-group input-group-sm">
                    <input type="date" style="margin-left: 15px;width: 200px;"  class="form-control" id="date" name="date" placeholder="日期"   value="{:input('date')}"/>
                    <input type="date" style="margin-left: 15px;width: 200px;"  class="form-control" id="date1" name="date1" placeholder="日期"   value="{:input('date1')}"/>
                    <input type="text" style="margin-left: 10px;width: 200px;"  class="form-control" name="search_data" placeholder="用户名|UID"  value="{:input('search_data')}"/>

                    <select name="wallet_id" class="new-form-control">
                        <option value="" >全部币种</option>
                        {volist name='wallet' id='vo'}
                        <option value="{$vo['id']}" {notempty name="param['wallet_id']"}{if condition="$param['wallet_id'] eq $vo['id']"} selected="selected" {/if}{/notempty} >{$vo['name']}</option>
                        {/volist}
                    </select>
                    <!--<select name="state" class="new-form-control">-->
                        <!--<option value="" >全部状态</option>-->
                        <!--<option value="0" {if condition="isset($param['state']) && $param['state'] eq 0"} selected="selected" {/if}{/notempty} >待审核</option>-->
                        <!--<option value="1" {notempty name="param['state']"}{if condition="$param['state'] eq 1"} selected="selected" {/if}{/notempty} >成功</option>-->
                        <!--<option value="2" {notempty name="param['state']"}{if condition="$param['state'] eq 2"} selected="selected" {/if}{/notempty} >失败</option>-->
                        <!--<option value="3" {notempty name="param['state']"}{if condition="$param['state'] eq 3"} selected="selected" {/if}{/notempty} >待到账</option>-->

                    <!--</select>-->
                    <div class="input-group-btn" style="display:inline-block">
                        <button type="button" id="search"  url="{:url('')}" class="btn btn-info btn-flat"><i class="fa fa-search"></i></button>
                        <ob_link><a class="btn export" style="margin-left: 20px;" url="{:url('exportTransferList')}"><i class="fa fa-download"></i> 导 出</a></ob_link>
                    </div>
                </div>
            </div>
        </div>

    </div>
    <div class="box-body table-responsive">
        <div class="top-table"> <span class="top-table-children">总条数:{$list['count']}</span> <span class="top-table-children">充值可用总额:{$list['ke']}</span> <span class="top-table-children">支付货币(ETH)总额:{$list['eth']}</span> <span class="top-table-children">支付货币(USDT)总额:{$list['usdt']}</span> <span class="top-table-children">支付货币(BTC)总额:{$list['btc']}</span> </div>
        <table  class="table table-bordered table-hover">
            <thead>
            <tr>
                <th>
                  序号
                </th>
                <th>ID</th>
                <th>用户戏账号</th>
                <th>用户戏账号UID</th>
                <th>提现金额</th>
                <th>手续费</th>
                <th>到账金额（闪兑）</th>
                <th>提现币种</th>
                <th>支付数量</th>
                <th>钱包地址</th>
                <th>申请时间</th>
                <th>操作</th>
            </tr>
            </thead>

            {notempty name='list.list'}
            <tbody>
            {volist name='list.list' id='vo' key='k'}
            <tr>
                
               <td>{$k}</td>
                <td>{$vo.id}</td>
                <td>{$vo.username}</td>
                <td>{$vo.user_id}</td>
                <td>{$vo.number}</td>
                <td>{$vo.poundage_number}</td>
                <td>{$vo.number-$vo.poundage_number}</td>
                <td>{$vo->towallet->name|default=''}</td>
                <td>{$vo.coin_number}</td>
                <td>{$vo.to}</td>
                <td>{$vo.create_time|date='Y-m-d H:i:s',###}</td>

                <!--<td>{if condition="$vo['update_time'] eq true"} {$vo.update_time|date='Y-m-d H:i:s',###}{else/}&#45;&#45;&#45;&#45;&#45;&#45;{/if}</td>-->

                <td class="col-md-2 text-center">
                    {if condition="$vo['state'] eq 0 "}
                    <ob_link><a class="btn confirm ajax-get" href="{:url('setStatus', array('id' => $vo['id'], 'state' => 1))}"><i class="fa fa-trash-o"></i> 批准</a></ob_link>
                    <ob_link><a class="btn confirm ajax-get" href="{:url('setStatus', array('id' => $vo['id'], 'state' => 2))}"><i class="fa fa-trash-o"></i> 拒绝</a></ob_link>

                    {else/}
                    ------
                    {/if}

                </td>
            </tr>
            {/volist}
            </tbody>
            {else/}
            <tbody><tr class="odd"><td colspan="12" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
            {/notempty}
        </table>
        <input type="hidden"  id="layui"  value=""/>

    </div>
    <div class="box-footer clearfix text-center">
        {$list.list->render()}
    </div>
</div>

<script>
    //导出功能
    $(".export").click(function(){

        window.location.href = searchFormUrl($(".export"));
    });
</script>